package com.cyt.${moduleName?replace('/', '.')}.domain.vo.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
<#list table.columns as column>
<#if column.javaType == "Date" && column.columnName != "CreateTime" && column.columnName != "UpdateTime">
import java.util.Date;
<#break>
</#if>
</#list>

/**
 * ${description}-exportVo类
 *
 * @author ${authorName}
 * @date ${.now}
 */
@Data
public class ${entityName}ExportVo implements Serializable {
<#list table.columns as column>
<#if column.columnName!="Id" && column.columnName!="RemoveTag" && column.columnName!="Creator" && column.columnName!="CreateTime" && column.columnName!="Updater" && column.columnName!="UpdateTime">

<#if column.sqlTypeName == "VARCHAR" && (column.remarks?contains("："))>
    @Excel(name = "${column.remarks?substring(0,column.remarks?index_of("："))}", width = 20, dict = "${column.columnNameLower}")
    private String ${column.columnNameLower};
<#elseif column.sqlTypeName == "YEAR">
    @Excel(name = "${column.columnAlias}", width = 20, exportFormat = "yyyy")
    private Date ${column.columnNameLower};
<#elseif column.sqlTypeName == "DATE">
    @Excel(name = "${column.columnAlias}", width = 20, exportFormat = "yyyy-MM-dd")
    private Date ${column.columnNameLower};
<#elseif column.sqlTypeName == "TIME">
    @Excel(name = "${column.columnAlias}", width = 20, exportFormat = "HH:mm:ss")
    private Date ${column.columnNameLower};
<#elseif column.sqlTypeName == "DATETIME">
    @Excel(name = "${column.columnAlias}", width = 20, exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date ${column.columnNameLower};
<#else>
    @Excel(name = "${column.columnAlias}", width = 20)
    private String ${column.columnNameLower};
</#if>
</#if>
</#list>
}
